import {
    post,
    get,
    put,
    Delete,
    form
} from "@/axios/http.js";
import {
    basicApi
} from "@/api/index.js"
//模块数据
export default {
    namespaced: true,
    state: {},
    actions: {
        // 通知消息标记已读/未读
        read({},params) {
            return get(basicApi.message.read, params).then(res => {
                return res
            });
        },

        // 通知消息列表
        getMsgList({},params) {
            return get(basicApi.message.list, params).then(res => {
                return res
            });
        },

        // 确认消息列表
        getRemindList({},params) {
            return get(basicApi.message.remind, params).then(res => {
                return res
            });
        },

        // 消息删除
        handleDeleteMessage({},params) {
            return get(basicApi.message.updateOrDel, params).then(res => {
                return res
            });
        },
        // 消息批量确认或删除
        updateOrDel({},params) {
            return get(basicApi.message.updateOrDel, params).then(res => {
                return res
            });
        },
        // 消息确认 || 拒绝
        msgConfirmOrReject({},params) {
            return get(basicApi.message.updateMessage, params).then(res => {
                return res
            });
        },
        
    },
    mutations: {},
};